package com.demo.linkList.loopSingleLikList;

public class Test {

    public static void main(String[] args) {
//        LoopSingleLinkList list = new LoopSingleLinkList(new Node(1, "第一个节点"));
//        list.addNode(new Node(2, "第二个节点"));
//        list.addNode(new Node(4, "第四个节点"));
//        list.addNode(new Node(3, "第三个节点"));
//        list.show();

        // 约瑟夫问题解决
        LoopSingleLinkList list = LoopSingleLinkList.initMultipartNode(5);
        list.countNode(2, 2, 20);
    }
}
